package com.koron.dynamic.mapper;

import com.koron.bean.app.AppBean;
import com.koron.bean.app.ExternalDb;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface AppDataSourceMapper {

    AppBean findDataSourceByKey(@Param("mark") String mark);

    List<AppBean> findDataSourceByKeyList(@Param("markList") List<String> markList,@Param("status") Integer status);

    String queryData(@Param("id") String id);

    List<ExternalDb> queryByExternalDB(@Param("status")Integer status);
}
